(function () {
    angular.module('app')
        .factory('SearchDrugFactory',fn);
    function fn(urlCnst,mockHttp) {
        var self = {};

        self.getDrugByDisease = function (body, cb) {
            // if( !urlCnst['mockHttp'] ){
            //     urlCnst.get('url',body,cb);
            // }

            var drug = mockHttp.allDrug;
            return cb(drug['err'],drug);
            //return cb(mockHttp.getResponse());
        };
        return self;

    }
})();